#ifndef __LENGTH_H__
#define __LENGTH_H__

#include <sstream>
#include <iostream>

using namespace std;
class LengthUnit;

class Length
{
public:	
        Length(const unsigned int& amount, const LengthUnit& unit);

        bool operator==(const Length &) const;
	bool operator!=(const Length &) const;
        Length operator+(const Length &) const;
	void toScreen( ) const;
	void toString(std::ostringstream& str) const;
	void toStringInBaseUnit(std::ostringstream& str) const;
private:
	unsigned int amountInBaseUnit;
};

#endif
